diff options
Diffstat (limited to 'src/app/groups/[groupId]/edit')
| -rw-r--r-- | src/app/groups/[groupId]/edit/page.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/app/groups/[groupId]/edit/page.tsx b/src/app/groups/[groupId]/edit/page.tsx index be1a5a8..c174c37 100644 --- a/src/app/groups/[groupId]/edit/page.tsx +++ b/src/app/groups/[groupId]/edit/page.tsx @@ -1,5 +1,6 @@ +import { cached } from '@/app/cached-functions' import { GroupForm } from '@/components/group-form' -import { getGroup, getGroupExpensesParticipants, updateGroup } from '@/lib/api' +import { getGroupExpensesParticipants, updateGroup } from '@/lib/api' import { groupFormSchema } from '@/lib/schemas' import { Metadata } from 'next' import { notFound, redirect } from 'next/navigation' @@ -13,7 +14,7 @@ export default async function EditGroupPage({ }: { params: { groupId: string } }) { - const group = await getGroup(groupId) + const group = await cached.getGroup(groupId) if (!group) notFound() async function updateGroupAction(values: unknown) { |
